<div>
    <table>
        <tr>
            <td>Id</td>
            <td>area</td>
            <td>nivel</td>
            <td></td>
            <td></td>
        </tr>
        <?php if(count($this->registrar)) :?>
        <?php foreach($this->registrar as $area) :?>
        <tr>
            <td><?php echo $area->id_area;?></td>
            <td><?php echo $area->nombre_area;?></td>
            <td><?php echo $area->nivel;?></td>
            <td><a href="/registrar/editararea/id_area/<?php echo $area->id_area ?>">Editar</td>
            <td><a href="/registrar/borrararea/id_area/<?php echo $area->id_area ?>">Borrar</td>
        </tr>
        <?php endforeach;?>
        <?php else :?>
        <tr>
            <td colsapan="3">no hay datos</td>
        </tr>
        <?php endif;?>
    </table>
</div>